package com.lei2j.adapter;

public class AdapterTurkey implements Duck{

	private Turkey turkey;
	
	public AdapterTurkey(Turkey turkey) {
		this.turkey = turkey;
	}
	
	@Override
	public void fly() {
		turkey.fly();
	}

	@Override
	public void quack() {
		for (int i = 0; i < 5; i++) {
			turkey.gobble();
		}
	}

}
